package com.seeyon.ctp.rest.resources;


import java.util.HashMap;
import java.util.Map;

import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;

import com.seeyon.ctp.rest.resources.BaseResource;

@Path("/kk")
public class Meetings extends BaseResource{

	@POST
	@Path("/test")
	@Produces({ MediaType.APPLICATION_JSON, MediaType.TEXT_HTML })
	@Consumes({ MediaType.APPLICATION_JSON, MediaType.TEXT_HTML })
	public Response ssl(){
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("code", true);
		map.put("massage", "数据测试");
		return ok(map);
	}
	
	
	@GET
	@Path("/test2")
	@Produces({ MediaType.APPLICATION_JSON, MediaType.TEXT_HTML })
	@Consumes({ MediaType.APPLICATION_JSON, MediaType.TEXT_HTML })
	public Response test2(){
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("code", true);
		map.put("massage", "数据测试2");
		return ok(map);
	}
}